import java.util.Arrays;

public class jibeforeou {
    public static void move(int[] array){
        for (int i = 0; i < array.length - 1; i++) {
            if(array[i]%2 == 0){
                int tmp = array[i];
                array[i] = array[i+1];
                array[i+1] = tmp;
            }
        }
        System.out.println(Arrays.toString(array));
    }

    public static void main(String[] args) {
        int[] array = {1,2,3,4,5};
        move(array);
    }
}
